<template>
  <div class="agent-legal-wrapper">
    <div class="bg decor-a"></div>
    <div class="bg decor-b"></div>
    <div class="justice-mark">法</div>

    <header class="hero">
      <h1 class="title">法律事务审查助手</h1>
      <p class="subtitle">基于工作流的合同/合规条款智能审阅</p>
    </header>

    <div class="doc-frame">
      <div class="doc-paper"></div>
      <div class="corner-fold"></div>
      <div class="notary-ribbon"></div>
      <div class="doc-spine"></div>
      <div class="binder-hole h1"></div>
      <div class="binder-hole h2"></div>
      <div class="binder-hole h3"></div>
      <div class="margin-line"></div>
      <div class="doc-header">
        <span class="doc-title">合同与合规审查</span>
        <span class="doc-sub">Legal Review</span>
      </div>
      <div class="meta-bar">
        <span class="meta-item"><b>文档</b> 合同审查包</span>
        <span class="dot-sep"></span>
        <span class="meta-item"><b>版本</b> v1.0</span>
        <span class="dot-sep"></span>
        <span class="meta-item"><b>日期</b> {{ today }}</span>
      </div>
      <div class="doc-stamp">审</div>
      <div class="confidential">CONFIDENTIAL 保密</div>
      <div class="index-tabs">
        <span class="tab">合同</span>
        <span class="tab">条款</span>
        <span class="tab">附件</span>
      </div>
      <div class="doc-content">
        <div class="card">
          <iframe
 src="http://11.73.23.232/chatbot/ES1hLVvdsgrZw06j"
 style="width: 100%; height: 100%; min-height: 860px"
 frameborder="0"
 allow="microphone">
          </iframe>
          <div class="watermark-mask"><span class="mask-text">法律审查助手</span></div>
        </div>
      </div>
      <div class="page-footer">第 1 页</div>
    </div>

    <ul class="tips">
      <li>示例：检查这份合同中是否存在自动续期条款风险。</li>
      <li>示例：提取所有付款节点与违约责任条款。</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'LGB_AgentLegal'
}
</script>

<style scoped>
.agent-legal-wrapper {
  padding: 40px 20px 32px;
  min-height: calc(100vh - 50px);
  box-sizing: border-box;
  text-align: center;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(59,130,246,0.10) 0%, rgba(255,255,255,0) 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(16,185,129,0.10) 0%, rgba(255,255,255,0) 60%),
              linear-gradient(180deg, #f7fbff 0%, #f3f6fb 100%);
  position: relative;
}

/* 背景司法徽记（淡化） */
.justice-mark { position:absolute; left: 6%; top: 8%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(2,6,23,0.06) 0%, rgba(2,6,23,0) 70%); color: rgba(2,6,23,0.06); font-weight:900; font-size: 64px; display:flex; align-items:center; justify-content:center; pointer-events:none; }

.hero { margin-bottom: 24px; }
.title { margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: .5px; }
.subtitle { margin: 0; color: #64748b; }

.card {
  width: 1024px;
  max-width: 100%;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6eef7;
  box-shadow: 0 10px 25px rgba(16,24,40,.08), 0 4px 12px rgba(16,24,40,.05);
  position: relative;
  z-index: 5; /* 确保主要内容位于装饰元素之上 */
}

/* 外层法律文书外框 */
.doc-frame {
  position: relative;
  width: calc(1024px + 96px);
  max-width: 96vw;
  margin: 0 auto;
  background: #fffdf8; /* 纸张暖白 */
  border: 1px solid #e4e1d5;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16,24,40,.10), 0 6px 14px rgba(16,24,40,.06);
}

/* 纸张横线背景（法律纸效果） */
.doc-paper { position:absolute; inset:0; pointer-events:none; z-index:0; background-image: repeating-linear-gradient(180deg, rgba(2,6,23,0.04) 0px, rgba(2,6,23,0.04) 1px, transparent 1px, transparent 34px); }

/* 右上折角 */
.corner-fold { position:absolute; top:0; right:0; width: 0; height: 0; border-top: 34px solid #f2efe6; border-left: 34px solid transparent; z-index:2; }

/* 公证缎带 */
.notary-ribbon { position:absolute; top:-10px; left: 72px; width: 14px; height: 56px; background: linear-gradient(180deg, #c2410c, #ea580c); border-radius: 3px; box-shadow: 0 4px 8px rgba(16,24,40,.2); z-index:2; }

/* 左侧书脊与装订孔 */
.doc-spine { position:absolute; left:0; top:0; width: 64px; height:100%; background: linear-gradient(180deg,#f1efe6 0%, #e7e4d8 100%); border-right: 1px solid #ddd7c5; z-index:1; pointer-events: none; }
.binder-hole { position:absolute; left:24px; width: 12px; height:12px; border-radius:50%; background:#cbd5e1; box-shadow: inset 0 2px 3px rgba(0,0,0,0.25); z-index:2; pointer-events: none; }
.binder-hole.h1 { top: 40px; }
.binder-hole.h2 { top: 120px; }
.binder-hole.h3 { top: 200px; }

/* 红色圆形印章 */
.doc-stamp { position:absolute; right: 24px; top: 24px; width: 68px; height: 68px; border: 3px solid rgba(220,38,38,.9); color: rgba(220,38,38,.9); border-radius: 50%; display:flex; align-items:center; justify-content:center; font-weight: 800; letter-spacing: 6px; transform: rotate(-12deg); opacity: .28; z-index:1; pointer-events: none; }

/* 右上斜向保密水印 */
.confidential { position:absolute; top: 80px; right: 40px; transform: rotate(-18deg); color: rgba(2,6,23,0.10); font-weight: 900; letter-spacing: 4px; font-size: 28px; user-select: none; pointer-events: none; z-index:1; }

/* 页眉与左侧红线（法律文书风格） */
.doc-header { position:absolute; top:0; left:64px; right:0; height: 56px; background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,1) 90%); border-bottom: 1px solid #efe9d8; display:flex; align-items:center; padding: 0 16px; gap: 10px; z-index:3; }
.doc-title { font-weight: 800; color:#1f2937; }
.doc-sub { color:#9ca3af; font-size:12px; }
.margin-line { position:absolute; top:56px; bottom:0; left:96px; width: 2px; background: #e11d48; opacity:.6; z-index:1; pointer-events: none; }

/* 页眉信息条 */
.meta-bar { position:absolute; top: 56px; left:96px; right: 16px; height: 32px; display:flex; align-items:center; gap: 10px; color:#6b7280; font-size: 12px; z-index:3; }
.meta-item b { color:#111827; margin-right:4px; }
.dot-sep { width:4px; height:4px; border-radius:50%; background:#d1d5db; display:inline-block; margin:0 6px; }

/* 内容容器：避免被页眉与装饰遮挡，并留出左侧书脊空间 */
.doc-content { position: relative; z-index: 5; padding: 96px 0 0 96px; }

/* 右侧索引标签 */
.index-tabs { position:absolute; top: 72px; right: -48px; display:flex; flex-direction: column; gap: 10px; z-index:4; }
.index-tabs .tab { background: #fef3c7; color:#92400e; border:1px solid #f3e3a3; padding: 6px 12px; border-radius: 6px; box-shadow: 0 2px 6px rgba(16,24,40,.08); font-size: 12px; font-weight: 700; }

/* 页脚页码 */
.page-footer { position:absolute; bottom: 8px; right: 16px; color:#9ca3af; font-size: 12px; }

/* 遮住 iframe 右上角水印 */
.watermark-mask {
  position: absolute;
  right: 0;
  top: 0;
  width: 220px;
  height: 50px;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
  border-bottom-left-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mask-text { font-size: 14px; color: #64748b; font-weight: 600; letter-spacing: 1.5px; }

.tips { list-style: none; padding: 12px 0 0; margin: 12px 0 0; color: #6b7280; font-size: 13px; }
.tips li { margin: 4px 0; }

.bg { position:absolute; pointer-events:none; z-index:0; }
.decor-a { top: 90px; left: 60px; width: 160px; height: 160px; border-radius:50%; background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, rgba(59,130,246,0) 70%); }
.decor-b { top: 140px; right: 60px; width: 200px; height: 200px; border-radius:50%; background: radial-gradient(circle, rgba(16,185,129,0.16) 0%, rgba(16,185,129,0) 70%); }
</style>


